<?php
	if (have_posts()) { while (have_posts()) : the_post(); update_post_caches($posts);
?>
		
			
<!-- Begin Post -->

<div class="rt-article">

	<div class="module-full">
		<div class="module-surround">
			<div class="module-tm">
				<div class="module-l">
					<div class="module-r">
						<div class="module-bm">
							<div class="module-tl">
								<div class="module-tr">
									<div class="module-bl">
										<div class="module-br">
	
											<div class="rt-article-bg">
												<div class="post-758 post type-post hentry category-frontpage" id="post-758">
													
																										
													<!-- Begin Title -->
												
													<div class="rt-headline">
													
														<div class="module-title">
															<div class="module-title2">
																<div class="module-title3">																						
																	<h1 class="rt-article-title">
																		<?php the_title();?>																					</h1>
													
																</div>
															</div>
														</div>
														
														<div class="clear"></div>
															
													</div>
														
													<!-- End Title -->
														
																														
													<div class="rt-article-content">
													
														<!-- Begin Post Content -->		
													
																																
														
														<?php if (has_post_thumbnail()){ 
																	$domsxe = simplexml_load_string(get_the_post_thumbnail());
																	$thumbnailsrc = $domsxe->attributes()->src;
																}
															echo '<p class="demo-img"><img class="rt-image" src="'.get_bloginfo('template_directory').'/lib/timthumb.php?src='.$thumbnailsrc.'" border="0" alt="'.get_the_title().'&amp;w=140&amp;h=90&amp;zc=1&amp;q=75" /></p>';
															?>

														
														<?php the_content_rss('', TRUE, '', 100); ?>
																					
																					
														<p class="rt-readon-surround">																			
															<a href="<?php the_permalink();?>" class="readon"><span>Read more ...</span></a>
														</p>
														
																																
														<div class="clear"></div>
														
														<!-- End Post Content -->
													
													</div>
													
																															
													<!-- Begin Meta -->
													
													<div class="rt-articleinfo">
														<div class="rt-articleinfo2">
															
																																	
															<!-- Begin Author -->
														
															<span class="rt-author">Posted by <span><?php the_author_posts_link(); ?></span></span>
															
															<!-- End Author -->
															
																																	
																																		
															<!-- Begin Date & Time -->
										
															<span class="rt-date-posted"><!--Posted on --><span><?php the_time('F j, Y'); ?></span></span>
															
															<!-- End Date & Time -->
															
															<span class="rt-date-modified">Action <?php edit_post_link(__('Edit', 'leepro_youdivvy'), '<span>', '</span>'); ?></span>																		
															
														</div>
														
																																	
															<!-- Begin Comments -->
															
																																		
															<div class="rt-comment-block">
																<a href="<?php the_permalink();?>/#comments" class="rt-comment-badge">
																	<span class="rt-comment-count"><?php comments_number('0', '1', '%' );?></span>
																</a>
																<span class="rt-comment-text"><?php if ($comments || comments_open()){ ?>
																		<a href="<?php the_permalink();?>#comments"><?php _e('Comments', 'leepro_youdivvy'); ?></a>
																	<?php }else{?>Comments
																	<?php } ?></span>
															</div>
							
																																		
															<!-- End Comments -->
														
																																
													</div>
													
													<!-- End Meta -->
													
																														
												</div>
												<div class="clear"></div>
											</div>
	
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
</div>

<!-- End Post -->

<?php  endwhile; ?>
	<div id="pagenavi">
		<?php	if(function_exists('wp_paginate')) {
			wp_paginate();
		}else { ?>
		<span class="newer"><?php previous_posts_link(__('Newer Entries', 'leepro_datienrestaurant')); ?></span>
		<span class="older"><?php next_posts_link(__('Older Entries', 'leepro_datienrestaurant')); ?></span>
		<?php } ?>
		<div class="fixed"></div>
	</div>
<?php }else { ?>
	<div class="errorbox">
		<?php _e('Sorry, no posts matched your criteria.', 'leepro_datienrestaurant'); ?>
		<?php get_search_form();?>
		<?php if(function_exists('wp_custom_fields_search')) 
			wp_custom_fields_search(); ?>
	</div>
<?php } ?>	